import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
// import 'package:my_app/home/test.dart';

// import 'home/home.dart';
import 'home/demo.dart';
import 'home/getDivice.dart';
import 'login/login.dart';
// import 'single/single.dart';
// import 'menu/menu.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      routes: {
        // "/": (context) => Home()
        "/": (context) => Login()
        // "/": (context) => Pulltorefresh()
        // "/": (context) => Menu()
        // "/": (context) => PageDemo()
        // "/": (context) => Divice()
      },
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales: [
        const Locale('zh', 'CH'),
        const Locale('en', 'US'),
      ],
      locale: const Locale('zh'),
      builder: EasyLoading.init(),
    );
  }
}
